<?php
	include('PHPOpenSpreadsheet.class.php');
	
	$obj = new PHPOpenSpreadsheet();
	
	$obj->Author = 'ScornInPC';
	
	$obj->addStyle(
					'teste1',
					array(
						// Font
						array('Font', array(
											array('Color', '#000000'), array('Size', '10'), array('FontName', 'Tahoma'), array('Bold', '1')
										)
						),
						
						// Interior
						array('Interior', array(
											array('Color', '#ffffff'), array('Pattern', 'Solid')
										)
						),
						
						// Alignment
						array('Alignment', array(
											array('Horizontal', 'Center'), array('Vertical', 'Center')
										)
						)
					)
				);
				
	$obj->addStyle(
					'teste2',
					array(
						// Border
						array('Border:Borders', array(
											array('Position', 'Bottom'), array('LineStyle', 'Continuous'), array('Weight', '1')
										)
						),
						array('Border:Borders', array(
											array('Position', 'Right'), array('LineStyle', 'Continuous'), array('Weight', '1')
										)
						),
						array('Border:Borders', array(
											array('Position', 'Top'), array('LineStyle', 'Continuous'), array('Weight', '1')
										)
						),
						array('Border:Borders', array(
											array('Position', 'Left'), array('LineStyle', 'Continuous'), array('Weight', '1')
										)
						)
					),
					'teste1'
				);
				
	$obj->addRow(
					array(),
					array(
						array('Minha Cel 1', array('StyleID', 'teste1')),
						//array('Minha Cel 2', array()),
						array('Minha Cel 3', array('StyleID', 'teste2'))
						
					)
				);
	
	$obj->Save('teste.xml');
?>